package com.srcptit.java.tranning.hoangdd.btvn1;

public class Bai6Muc1{
    
	public static boolean thuan_nghich(int n){
		int a=n,b=0;
		while(n>0){
			b=b*10 + n%10;
			n/=10;
		}
		while(a == b) return true;
		return false;
	}
	public static void main(String[] args) {
		for(int i=100000 ; i<=999999 ; i++)
			if(thuan_nghich(i) == true) 
				System.out.println(i);

	}

}
